package com.hongxun.modules.api.dao;

import com.hongxun.modules.api.entity.BMaterialQuantitiesEntity;
import com.hongxun.modules.sys.dao.BaseDao;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 配电材料工程量表
 * 
 * @author zkcn
 * @email youeremail@163.com
 * @date 2018-07-27 15:51:04
 */
@Mapper
public interface BMaterialQuantitiesDao extends BaseDao<BMaterialQuantitiesEntity> {
    @Delete ("<script>"
     + "delete from b_material_quantities WHERE d_guid IN "
     + "<foreach item='item' index='index' collection='guids' open='(' separator=',' close=')'>"
            + "#{item}"
     + "</foreach>"
     + "</script>")
    void deleteByMguid(@Param("guids") String[] guids);
}
